import request from "./request";

interface IUserInfo {
  tel: string;
  password: string;
}
interface ILogin {
  loginname: string;
  password: string;
}

// 注册接口
export const userRegister = (params: IUserInfo) => {
  return request.post("/user/dofinishregister", params);
};

// 登陆
export const userLogin = (params: ILogin) => {
  return request.post("/user/login", params);
};

// 宫格
export const getDaftar = () => {
  return request.get("maoer/explore/tagalbum?order=0");
};

//轮播图
export const getSwipe = () => {
  return request.get("maoer/mobileWeb/homepage");
};

// 推荐-大宫格
export const getRecommendLarge = () => {
  return request.get("maoer/sound/newhomepagedata");
};

// 推荐-分类
export const getClass = () => {
  return request.get("maoer/mobileWeb/catalogroot");
};
